<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // Object
        var student = {
            name: '张三',
            age: 30,
            sex: '男',
            height: 180,
            likeColor: ['pink', 'purple'],
            friends: [
                {
                    name: '李磊',
                    age: 38,
                    sex: '男'
                },
                {
                    name: '韩梅梅',
                    age: 38,
                    sex: '女'
                }
            ],
            skill: function () {
                alert('I can play yxlm !');
            },
            run: function () {
                alert('I can running...');
            }
        }

        // 需求4: 表示一个班级所有的学员信息?

        var studentArr = [
            {
                name: '李磊',
                age: 38,
                sex: '男'
            },
            {
                name: '韩梅梅',
                age: 38,
                sex: '女'
            }
        ]
    </script>
</body>

</html>